echo "Preparing..."
rm -rf /tmp/mac-builds/mc-server
mkdir -p /tmp/mac-builds/mc-server
echo "Checking out..."
svn checkout http://mc-server.googlecode.com/svn/trunk/ mc-server
echo "Preparing build..."
cd mc-server
rm CryptoPP/sosemanuk.h
rm CryptoPP/sosemanuk.cpp
rm CryptoPP/salsa.cpp
rm CryptoPP/salsa.h
echo "Building..."
make release=1
echo "Setting up..."

rm ~/MCServer/MCServer
mv MCServer/MCServer ~/MCServer/MCServer
